package com.framework.bdf4j.sysadm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.framework.bdf4j.comm.persist.ScaBaseMapper;
import com.framework.bdf4j.sysadm.entity.SysMenu;
import com.framework.bdf4j.sysadm.vo.MenuVO;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 */
@Mapper
public interface SysMenuMapper extends ScaBaseMapper<SysMenu> {

	/**
	 * 通过角色编号查询菜单
	 *
	 * @param roleId 角色ID
	 * @return
	 */
	List<MenuVO> listMenusByRoleId(Integer roleId);

	/**
	 * 通过角色ID查询权限
	 *
	 * @param roleIds Ids
	 * @return
	 */
	List<String> listPermissionsByRoleIds(String roleIds);
}
